#include "stdafx.h"
#include "pay_proxy_mainserver.h"


RtResult	RT_API_EXPORT Pay_Proxy_Server_Init()
{
	CPayProxyMainServer* pMainServer = CPayProxyMainServer::Instance();
	RT_ASSERTE(pMainServer);
	if (NULL == pMainServer)
	{
		RT_ERROR_TRACE("main server initialize fail! CPayProxyMainServer::Instance() null");
		return RT_ERROR_NULL_POINTER;
	}
	
	RtResult rv = pMainServer->Initialize();	
	if(RT_FAILED(rv))
	{
		RT_ERROR_TRACE("main serverinitialize fail! rv="<<rv);
		return rv;
	}
	
	RT_INFO_TRACE("main server initializes successfully.");
	return rv;
}
